cmake_minimum_required(VERSION 3.19)
project(VulkanRender)

if (MSVC)
    add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")
    add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")
endif()

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_C_EXTENSIONS OFF)

set(local_path ${CMAKE_CURRENT_SOURCE_DIR})

add_subdirectory(vulkan "vulkan")

add_executable(01_triangle 01_triangle.cpp)
target_link_libraries(01_triangle vulkan_lib)

add_executable(02_Image 02_Image.cpp)
target_link_libraries(02_Image vulkan_lib)

add_executable(03_yuv 03_yuv.cpp)
target_link_libraries(03_yuv vulkan_lib)

